package de.ff7rl.core.map;

import java.awt.Color;

import org.apache.commons.lang.StringUtils;

public class Tile {

  private String character = StringUtils.EMPTY;
  private Color foregroundColor = Color.WHITE;
  private Color backGroundColor = Color.BLACK;
  private boolean blocksPlayer;

  public Tile() {
  }

  public Tile(final String theCharacter, final Color theForegroundColor, final Color theBackGroundColor,
      final boolean theBlocksPlayer) {
    character = theCharacter;
    foregroundColor = theForegroundColor;
    backGroundColor = theBackGroundColor;
    blocksPlayer = theBlocksPlayer;
  }

  public Tile(final Tile theTile) {
    this(theTile.getCharacter(), theTile.getForeGroundColor(), theTile.getBackGroundColor(), theTile.isBlocksPlayer());
  }

  public Color getBackGroundColor() {
    return backGroundColor;
  }

  public String getCharacter() {
    return character;
  }

  public Color getForeGroundColor() {
    return foregroundColor;
  }

  public boolean isBlocksPlayer() {
    return blocksPlayer;
  }

  public void setBackGroundColor(final Color theBackGroundColor) {
    backGroundColor = theBackGroundColor;
  }

  public void setBlocksPlayer(final boolean theBlocksPlayer) {
    blocksPlayer = theBlocksPlayer;
  }

  public void setCharacter(final String theCharacter) {
    character = theCharacter;
  }

  public void setForegroundColor(final Color theForegroundColor) {
    foregroundColor = theForegroundColor;
  }

}
